#include<iostream>
using namespace std;
#include<vector>
#include<algorithm>
#include<string>

class GreaterThanFive{
    public:
    bool operator()(int a){
        return a>5;
    }
};


int main(){
    GreaterThanFive op;
    cout<<op(8)<<endl;
    vector<int> v1;
    for(int i=0;i<10;++i){
        v1.push_back(i);
    }

vector<int>::iterator it=find_if(v1.begin(),v1.end(),op);

if(it!=v1.end()){
    cout<<*it<<endl;
}else{
    cout<<"000"<<endl;
}

    return 0;
}